package com.ssk.sh.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author ssk
 * @since 2025-06-12
 */
@Getter
@Setter
@TableName("messages")
@Schema(name = "Messages", description = "")
public class Messages implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("chat_id")
    private Long chatId;

    @TableField("sender_id")
    private Long senderId;

    @TableField("content")
    private String content;

    @TableField("files")
    private Object files;

    @TableField("created_at")
    private LocalDateTime createdAt;

    public static final String ID = "id";

    public static final String CHAT_ID = "chat_id";

    public static final String SENDER_ID = "sender_id";

    public static final String CONTENT = "content";

    public static final String FILES = "files";

    public static final String CREATED_AT = "created_at";
}
